getOrElse

inline fun <T> KOptional<T>.getOrElse(action: () -> T): T(source)

Returns the value if it's present, or the one provided by the action otherwise.